/* SPDX-License-Identifier: GPL-2.0
 * Copyright (c) Huawei Technologies Co., Ltd. 2023-2023. All rights reserved.
 * Description: usbnet driver Vendor Hooks
 */

#ifdef CONFIG_VENDOR_USB_STORAGE_HOOKS
#undef TRACE_SYSTEM
#define TRACE_SYSTEM usb_storage

#define TRACE_INCLUDE_PATH trace/hooks
#if !defined(_TRACE_HOOK_USB_STORAGE_H) || defined(TRACE_HEADER_MULTI_READ)
#define _TRACE_HOOK_USB_STORAGE_H
#include <linux/tracepoint.h>
#include <trace/hooks/vendor_hooks.h>

struct us_data;

DECLARE_HOOK(vendor_usb_storage_huawei_init,
	TP_PROTO(struct us_data *us, int *result),
	TP_ARGS(us, result));

DECLARE_HOOK(vendor_usb_storage_zowee_init,
	TP_PROTO(struct us_data *us, int *result),
	TP_ARGS(us, result));

#endif
/* This part must be outside protection */
#include <trace/define_trace.h>

#else

#include <linux/tracepoint.h>

struct us_data;

DECLARE_EVENT_NOP(vendor_usb_storage_huawei_init,
	TP_PROTO(struct us_data *us, int *result),
	TP_ARGS(us, result));

DECLARE_EVENT_NOP(vendor_usb_storage_zowee_init,
	TP_PROTO(struct us_data *us, int *result),
	TP_ARGS(us, result));

#endif  /* CONFIG_VENDOR_USB_STORAGE_HOOKS */
